import { Injectable } from '@angular/core';
import { channel, ImageSlider, TopMenu } from 'src/app/shared/components';
// tslint:disable
@Injectable({
  providedIn: 'root'
})
export class HomeService {
  /**
 * 导航栏数据
 */
  private topMenus: TopMenu[] = [
    { title: '热门', link: 'hot' },
    { title: '男装', link: 'hot' },
    { title: '百货', link: '1' },
    { title: '电脑', link: '2' },
    { title: '运动', link: '4' },
    { title: '手机', link: '43' },
    { title: '家纺', link: '34' },
    { title: '食品', link: '43' },
    { title: '母婴', link: '353' },
    { title: '家具', link: '24' }
  ];
  /**
 * 轮播图数据
 */
  private imageSliders: ImageSlider[] = [
    {
      imgUrl: '../assets/image/图片 (1).jpg',
      link: '',
      caption: ''
    },
    {
      imgUrl: '../assets/image/图片 (2).jpg',
      link: '',
      caption: ''
    },
    {
      imgUrl: '../assets/image/图片 (3).jpg',
      link: '',
      caption: ''
    },
    {
      imgUrl: '../assets/image/图片 (4).jpg',
      link: '',
      caption: ''
    },
    {
      imgUrl: '../assets/image/图片 (5).jpg',
      link: '',
      caption: ''
    },
  ];
  /**
   * 图标栏数据
   */
  private channels: channel[] = [
    {
      id: 1,
      imgUrl: 'https://img.pddpic.com/goods/2020-04-29/798a43c5ae721a5d3dbbcbd5f95488db.png?imageView2/2/w/117/q/80/format/webp',
      title: '呵呵',
      link: ''
    }, {
      id: 2,
      imgUrl: 'https://img.pddpic.com/goods/2020-03-08/2723bae18ca29e72c195562bfdace6cd.png?imageView2/2/w/117/q/80/format/webp',
      title: '呵呵',
      link: ''
    }, {
      id: 3,
      imgUrl: 'https://img.pddpic.com/goods/2020-04-29/798a43c5ae721a5d3dbbcbd5f95488db.png?imageView2/2/w/117/q/80/format/webp',
      title: '呵呵',
      link: ''
    }, {
      id: 4,
      imgUrl: 'https://img.pddpic.com/goods/2020-04-29/798a43c5ae721a5d3dbbcbd5f95488db.png?imageView2/2/w/117/q/80/format/webp',
      title: '呵呵',
      link: ''
    }, {
      id: 5,
      imgUrl: 'https://img.pddpic.com/goods/2020-04-29/798a43c5ae721a5d3dbbcbd5f95488db.png?imageView2/2/w/117/q/80/format/webp',
      title: '呵呵',
      link: ''
    }, {
      id: 6,
      imgUrl: 'https://img.pddpic.com/goods/2020-04-29/798a43c5ae721a5d3dbbcbd5f95488db.png?imageView2/2/w/117/q/80/format/webp',
      title: '呵呵',
      link: ''
    }, {
      id: 7,
      imgUrl: 'https://img.pddpic.com/goods/2020-04-29/798a43c5ae721a5d3dbbcbd5f95488db.png?imageView2/2/w/117/q/80/format/webp',
      title: '呵呵',
      link: ''
    }, {
      id: 8,
      imgUrl: 'https://img.pddpic.com/goods/2020-04-29/798a43c5ae721a5d3dbbcbd5f95488db.png?imageView2/2/w/117/q/80/format/webp',
      title: '呵呵',
      link: ''
    }, {
      id: 9,
      imgUrl: 'https://img.pddpic.com/goods/2020-04-29/798a43c5ae721a5d3dbbcbd5f95488db.png?imageView2/2/w/117/q/80/format/webp',
      title: '呵呵',
      link: ''
    }, {
      id: 10,
      imgUrl: 'https://img.pddpic.com/goods/2020-04-29/798a43c5ae721a5d3dbbcbd5f95488db.png?imageView2/2/w/117/q/80/format/webp',
      title: '呵呵',
      link: ''
    }, {
      id: 11,
      imgUrl: 'https://img.pddpic.com/goods/2020-04-29/798a43c5ae721a5d3dbbcbd5f95488db.png?imageView2/2/w/117/q/80/format/webp',
      title: '呵呵',
      link: ''
    }, {
      id: 12,
      imgUrl: 'https://img.pddpic.com/goods/2020-04-29/798a43c5ae721a5d3dbbcbd5f95488db.png?imageView2/2/w/117/q/80/format/webp',
      title: '呵呵',
      link: ''
    }, {
      id: 13,
      imgUrl: 'https://img.pddpic.com/goods/2020-04-29/798a43c5ae721a5d3dbbcbd5f95488db.png?imageView2/2/w/117/q/80/format/webp',
      title: '呵呵',
      link: ''
    }, {
      id: 14,
      imgUrl: 'https://img.pddpic.com/goods/2020-04-29/798a43c5ae721a5d3dbbcbd5f95488db.png?imageView2/2/w/117/q/80/format/webp',
      title: '呵呵',
      link: ''
    }, {
      id: 15,
      imgUrl: 'https://img.pddpic.com/goods/2020-04-29/798a43c5ae721a5d3dbbcbd5f95488db.png?imageView2/2/w/117/q/80/format/webp',
      title: '呵呵',
      link: ''
    }, {
      id: 16,
      imgUrl: 'https://img.pddpic.com/goods/2020-04-29/798a43c5ae721a5d3dbbcbd5f95488db.png?imageView2/2/w/117/q/80/format/webp',
      title: '呵呵',
      link: ''
    }
  ];
  getTopMenus() {
    return this.topMenus;
  }
  getImageSlider(){
    return this.imageSliders;
  }
  getChannels(){
    return this.channels;
  }
}
